package com.grape.job;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.grape.service.take_delivery.PromotionService;

public class PromotionJob implements Job{

	@Autowired
	private PromotionService ps;
	
	@Override
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		System.out.println("执行检查过期任务");
		ps.updateStatus(new Date());
	}

}
